<!DOCTYPE html>
<html lang="en-US">
<head>
	<meta charset="utf-8">
	<title>"清白泉"廉洁文化宣教网</title>
	<link rel="icon" href="./img/favicon.ico"/>
	<link rel="stylesheet" type="text/css" href="./css/index.css">
	<script type="text/javascript" src="./js/jquery-3.3.1.min.js"></script>
	<!--[if lte IE 8]>
		<link rel="stylesheet" type="text/css" href="./css/ie8.css">
		<script type="text/javascript" src="https://code.jquery.com/jquery-1.9.0.min.js"></script>
	<![endif]-->
</head>
<body>
<!-- 横幅 -->
	<img src="./img/header-top.png" style="width: 100%;">
	<!-- <div class="banner-container mountain-top ie8-back">
	[if lte IE 8]>
		<img src="./img/back-mountainTop.png" class="ie8-backImg">
	<![endif]
		<div class="border-cell border-top"></div>
		<div class="banner-inner able-center">
			<div class="banner-image">
				<img src="./img/back-wall.png">
			</div>
			<div class="banner-title">
				<img src="./img/title.png">
			</div>
		</div>
		<div class="border-cell border-bottom"></div>
	</div> -->
	<!-- 主体内容 -->
	<div class="main-container mountain ie8-back">
	<!--[if lte IE 8]>
		<img src="./img/back-mountain.png" class="ie8-backImg">
	<![endif]-->
		<div class="able-center opacity-back">
			<!-- 卷首语 -->
			<div class="jsy-wrap paint ie8-back">
			<!--[if lte IE 8]>
				<img src="./img/back-panit.png" class="ie8-backImg">
			<![endif]-->
			<div class="jsy-inner">
				<div class="jsy-left">
					<img src="./img/tip-jsy.png">
				</div>
				<div class="jsy-right">
					<p class="jsy-parag">
						绍兴，与水结缘2500余年。作为首批历史文化名城，绍兴的文化基因中不可或缺的就是水文化。绍兴的廉政文化建设自然也离不开水文化的清润。“清白泉”位于绍兴市区府山公园南麓岩壁。此泉由北宋著名政治家范仲淹在宝元二年（公元1039年）任越州支付时发现，因“爱其清白儿有德义，为管师之规”（取自范仲淹《清白堂记》），遂取名为“清白泉”。
					</p>
				</div>
			</div>
			</div>
			<!-- 板块信息 -->
			<!-- 板块信息 -->
			<div class="menu">
				<!-- 名士家风 -->
				<div class="palete-wrap single">
					<div class="plate-container">
						<div class="plate-header">
							<h3 class="plate-title" id="title">
								<img src>
								<span class="plate-title-extra">
								</span>
								<a class="plate-link-more"></a>
							</h3>
						</div>
						<div class="plate-inner">
							<h4 class="article-title"></h4>
							<p class="article-author"></p>
							<div class="plate-article" id="content">
								加载中...
							</div>
						<!-- 	<p class="article-from">（来源：<span></span>）</p> -->
							<div class="hot-word">
								<p>上一篇</p>
								<p>下一篇</p>
							</div>
						</div>
					</div>
				</div>
			</div>
	</div>
	</div>
<script type="text/javascript" src="./js/lianjie.js"></script>
<script type="text/javascript">
	var stable = [
		{
			name:"名士家风",
			img:"msjf.png",
			dept:"绍兴县党支部、网络党支部",
			childs:[
				{
					name:"清白泉·廉洁家风大讲堂",
					id: "no1"
				},
				{
					name:"清白泉·名士家风主题演讲",
					id: "no2"
				},
				{
					name:"清白泉·清风故事会",
					id: "no3"
				}
			]
		},
		{
			name:"清风悦读",
			img:"qfyd.png",
			dept:"上虞党支部",
			childs:[
				{
					name:"党规党纪",
					id: "no5"
				},
				{
					name:"法规释义",
					id: "no6"
				},
				{
					name:"业务解答",
					id: "no7"
				}
			]
		},
		{
			name:"翰墨清韵",
			img:"hmqy.png",
			dept:"诸暨党支部",
			childs:[
				{
					name:"获奖作品",
					id: "no4",
					menu:"hjzp"
				},
				{
					name:"宣传展览",
					id: "no4",
					menu:"xczl"
				},
				{
					name:"作品展览",
					id: "no4",
					menu: "zpzs"
				}
			]
		},
		{
			name:"清风纪语",
			img:"qfjy.png",
			dept:"嵊州党支部、越城党支部",
			childs:[
				{
					name:"清风纪语",
					id: "no8"
				}
				
			]
		},
		{
			name:"新风宣言",
			img:"xfxy.png",
			dept:"嵊州党支部、越城党支部",
			childs:[
				{
					name:"新风宣言",
					id: "no9"
				}
			]
		},
		{
			name:"清风学堂",
			img:"qfxt.png",
			dept:"政企党支部",
			childs:[
				/*{
					name:"现场零距离",
					id: "no10"
				},*/
				{
					name:"清风之旅",
					id: "no11"
				},
				{
					name:"举案说纪",
					id: "no12"
				},
				{
					name:"题目测试",
					id: "no15"
				}
			]
		},
		{
			name:"倡廉前线",
			img:"clqx.png",
			dept:"新昌党支部",
			childs:[
				{
					name:"倡廉前线",
					id: "no13"
				}/*,
				{
					name:"选廉树廉",
					id: "no14"
				}*/
			]
		}
	];
$(function(){
	initSubTitle(getArgsFromPre("status"));
	getDataDetail(getArgsFromPre("method"),getArgsFromPre("code"));
});
/*初始化表头内容*/
initSubTitle = function(index){
	var pageMsg = stable[index];
	/*标头文字及样式*/
	$("#title>img").attr("src","./img/"+pageMsg.img);
	$("#title .plate-title-extra").text(pageMsg.dept);
	for(var i =0;i<pageMsg.childs.length;i++){
		if(pageMsg.childs[i].id == getArgsFromPre("method")){
			$("#title .plate-link-more").text(pageMsg.childs[i].name);
			$(".plate-link-more").click(function(){
				window.location.href = "./listStack.html?status="+index+"&subtilte="+getArgsFromPre("method");
			});
		}
	}
	
}
/*组装数据*/
renderDataDetail = function(result){
	var data = JSON.parse(result.data);
	if(data[0].content == ""){
		$(".article-title").html(data[0].title);
		$(".article-author").html("发稿时间：<span>"+data[0].createdate+"</span>&nbsp;作者：<span>"+data[0].creater+"</span>");
	}
	$("#content").html(data[0].content);
	if(typeof(result.url)!="undefined"&&result.url!=null&&result.url!=""){
		if(getIEVer() < 12) {
			$("#content").append($("<div class='video-center'><embed src='"+result.url+"' width='1000' height='564' autostart=false></embed></div>"));
		}else{
			$("#content").append($("<video src='"+result.url+"' style='width:100%' controls='controls'></video>"));
		}
	}
	var html = "";
		html+="<p>上一篇：<a activeId='"+result.id1+"'>"+result.name1+"</a></p>";
		html+="<p>下一篇：<a activeId='"+result.id2+"'>"+result.name2+"</a></p>";
	$(".hot-word").html(html);
	$(".hot-word>p").each(function(){
		$(this).children("p>a").click(function(){
			if($(this).text()!=""&&$(this).text()!="无上一篇信息"&&$(this).text()!="无下一篇信息"){
				linkToDetail(getArgsFromPre("status"),data[0].menus,$(this).attr("activeId"));
			}
		});
	})
}
</script>
</body>
</html>